package cn.kow.kmall.service;

import cn.kow.kmall.pojo.entity.ItemCategory;
import cn.kow.kmall.pojo.entity.ItemCategoryGroup;
import cn.kow.kmall.pojo.entity.ItemCategoryImage;

import java.util.List;
import java.util.Map;

/**
 * @Author: lijun
 * @Description:
 * @Date: Created in 2019-05-24 17:23
 * @Modified By:
 */
public interface ItemCategoryService {

    /**
     * 根据父类Id获取分类列表
     * @param parentId 父类Id
     * @return 分类列表
     */
    List<ItemCategory> listByParentId(Long parentId);

    /**
     * 根据ID获取分类
     * @param id
     * @return
     */
    ItemCategory getById(Long id);

    List<ItemCategoryGroup> listCategoryGroup(List<Long> groupIdList);

    Map<Long, ItemCategory> listForMap();

    List<ItemCategoryImage> listCategoryImage(Long id);

    void save(ItemCategory category);

    void remove(List<Long> idList);

    void update(ItemCategory category);
}
